package com.golang.api.common;

import lombok.Getter;

@Getter
public enum CheckStatusType {

    UnCheck("待验票"),
    Checked("已验票");


    CheckStatusType(String showName) {
        this.showName = showName;
    }

    private final String showName;


    public static CheckStatusType getTypeByOrdinal(Integer status) {
        CheckStatusType type = null;
        switch (status) {
            case 0:
                type = CheckStatusType.UnCheck;
                break;
            case 1:
                type = CheckStatusType.Checked;
                break;
            default:
                ;
        }

        return type;

    }


}
